package com.xin.springcloudconsumer.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
   ftl的映射路径
 */
@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/index/index").setViewName("/index/index");
        registry.addViewController("/list/list").setViewName("/list/list");
        registry.addViewController("/login/loginSMS").setViewName("/login/loginSMS");
        registry.addViewController("/login/loginPassword").setViewName("/login/loginPassword");
        registry.addViewController("/register/register").setViewName("/register/register");
    }
}
